<?php session_start(); ?>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="public/css/style.css" />
<?php include('template/header.php')?>
        
<?php //session_start();
 require_once './model/works.php';

 
        $md_works=new Works();
        $work=$md_works->select(array('id_works'=>$_GET["id"]), null, false);

?>
<?php
    if(!empty($work)):
?>
    <div id="view">
      
<table border="1px" align="center">
    <tr>
        <td>Name</td>
       
        <td>Description</td>
    </tr>
    <tr>
        <td> <?php echo $work[0]["name"];?></td>
       
        <td> <?php echo $work[0]["description"];?></td>
    </tr>
</table>
</div>
   
<?php endif;?>
    <?php include('template/footer.php')?>
</html>